<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>智能学习平台</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css">
    <style>
        :root {
            --primary: #4361ee;
            --primary-dark: #3a56d4;
            --secondary: #6c757d;
            --accent: #f72585;
            --success: #4cc9f0;
            --warning: #f9c74f;
            --danger: #f94144;
            --light: #f8f9fa;
            --dark: #212529;
            --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            --transition: all 0.3s ease;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #f5f7fa 0%, #e4eaf1 100%);
            color: var(--dark);
            line-height: 1.6;
            min-height: 100vh;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 15px;
        }

        /* 头部样式 */
        .header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 0;
            background-color: white;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary);
        }

        .logo-icon {
            color: var(--primary);
            font-size: 1.8rem;
        }

        .header-buttons {
            display: flex;
            gap: 15px;
        }

        .btn {
            padding: 10px 20px;
            border: none;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .btn-primary {
            background: var(--primary);
            color: white;
        }

        .btn-primary:hover {
            background: var(--primary-dark);
            transform: translateY(-2px);
        }

        .btn-outline {
            background: transparent;
            border: 1px solid var(--secondary);
            color: var(--secondary);
        }

        .btn-outline:hover {
            background: var(--secondary);
            color: white;
        }

        /* Banner样式 */
        .banner {
            background: linear-gradient(120deg, var(--primary), var(--primary-dark));
            color: white;
            text-align: center;
            padding: 40px 20px;
            margin: 30px 0;
            border-radius: 12px;
            box-shadow: var(--card-shadow);
        }

        .banner h2 {
            font-size: 2rem;
            margin-bottom: 15px;
        }

        .banner p {
            font-size: 1.1rem;
            margin-bottom: 25px;
            max-width: 700px;
            margin-left: auto;
            margin-right: auto;
        }

        .banner .btn {
            margin: 0 auto;
            background: white;
            color: var(--primary);
            font-weight: 700;
        }

        .banner .btn:hover {
            background: var(--light);
            transform: translateY(-2px);
        }

        /* 系统公告 */
        .system-notice {
            position: relative;
            margin-bottom: 30px;
        }

        .notice-card {
            background: white;
            border-radius: 12px;
            padding: 20px;
            box-shadow: var(--card-shadow);
            border-left: 4px solid var(--accent);
        }

        .notice-header {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 15px;
            color: var(--accent);
            font-weight: 600;
        }

        .notice-title {
            font-weight: 700;
            margin-bottom: 8px;
            color: var(--dark);
        }

        .notice-desc {
            color: var(--secondary);
            margin-bottom: 10px;
        }

        .notice-time {
            font-size: 0.9rem;
            color: var(--secondary);
        }

        /* 快捷功能 */
        .section-title {
            font-size: 1.5rem;
            margin-bottom: 25px;
            color: var(--dark);
            position: relative;
            padding-left: 15px;
        }

        .section-title::before {
            content: '';
            position: absolute;
            left: 0;
            top: 5px;
            height: 25px;
            width: 5px;
            background: var(--primary);
            border-radius: 3px;
        }

        .functions-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            margin-bottom: 40px;
        }

        .function-card {
            background: white;
            border-radius: 12px;
            padding: 25px 20px;
            text-align: center;
            box-shadow: var(--card-shadow);
            transition: var(--transition);
        }

        .function-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
        }

        .function-icon {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 15px;
            font-size: 1.8rem;
        }

        .exam-icon {
            background: rgba(67, 97, 238, 0.2);
            color: var(--primary);
        }

        .exercise-icon {
            background: rgba(76, 201, 240, 0.2);
            color: var(--success);
        }

        .ranking-icon {
            background: rgba(249, 199, 79, 0.2);
            color: var(--warning);
        }

        .analysis-icon {
            background: rgba(247, 37, 133, 0.2);
            color: var(--accent);
        }

        .function-card h4 {
            font-size: 1.2rem;
            margin-bottom: 10px;
            color: var(--dark);
        }

        .function-card p {
            color: var(--secondary);
            font-size: 0.95rem;
        }

        /* 热门题目 */
        .hot-questions {
            margin-bottom: 40px;
        }

        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }

        .view-more {
            color: var(--primary);
            text-decoration: none;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .view-more:hover {
            text-decoration: underline;
        }

        .questions-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
        }

        .question-card {
            background: white;
            border-radius: 12px;
            padding: 20px;
            box-shadow: var(--card-shadow);
            transition: var(--transition);
        }

        .question-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
        }

        .question-tags {
            display: flex;
            gap: 8px;
            margin-bottom: 15px;
        }

        .tag {
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
        }

        .tag-type {
            background: rgba(67, 97, 238, 0.2);
            color: var(--primary);
        }

        .tag-difficulty {
            background: rgba(249, 199, 79, 0.2);
            color: var(--warning);
        }

        .question-card h4 {
            font-size: 1rem;
            margin-bottom: 15px;
            color: var(--dark);
            line-height: 1.5;
        }

        .question-stats {
            display: flex;
            justify-content: space-between;
            color: var(--secondary);
            font-size: 0.9rem;
        }

        /* 统计卡片 */
        .stats-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-bottom: 50px;
        }

        .stat-card {
            background: white;
            border-radius: 12px;
            padding: 25px 20px;
            text-align: center;
            box-shadow: var(--card-shadow);
            transition: var(--transition);
        }

        .stat-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
        }

        .stat-icon {
            font-size: 2.5rem;
            margin-bottom: 15px;
            color: var(--primary);
        }

        .stat-number {
            font-size: 2rem;
            font-weight: 700;
            margin-bottom: 5px;
            color: var(--dark);
        }

        .stat-desc {
            color: var(--secondary);
            font-size: 0.95rem;
        }

        /* 响应式设计 */
        @media (max-width: 768px) {
            .header {
                flex-direction: column;
                gap: 15px;
                padding: 15px;
            }

            .header-buttons {
                flex-wrap: wrap;
                justify-content: center;
            }

            .functions-container,
            .questions-container,
            .stats-container {
                grid-template-columns: 1fr;
            }

            .banner h2 {
                font-size: 1.5rem;
            }

            .banner p {
                font-size: 1rem;
            }
        }
    </style>
</head>

<body>
    <div class="container">
        <!-- 头部 -->
        <div class="header">
            <div class="logo">
                <i class="fas fa-graduation-cap logo-icon"></i>
                <span>智能学习平台</span>
            </div>
            <div class="header-buttons">
                <button class="btn btn-primary">
                    <i class="fas fa-door-open"></i>
                    <span>考生入口</span>
                </button>
                <button class="btn btn-outline">
                    <i class="fas fa-trophy"></i>
                    <span>考试排行榜</span>
                </button>
                <button class="btn btn-outline">
                    <i class="fas fa-cog"></i>
                    <span>管理员后台</span>
                </button>
            </div>
        </div>

        <!-- Banner -->
        <div class="banner">
            <h2>嵌入式 & 万物互联</h2>
            <p>大牛手把手教你实操企业真实项目，无缝对接企业真实工作流程</p>
            <button class="btn">
                <i class="fas fa-info-circle"></i>
                <span>了解更多</span>
            </button>
        </div>

        <!-- 系统公告 -->
        <div class="system-notice">
            <div class="notice-card">
                <div class="notice-header">
                    <i class="fas fa-bell"></i>
                    <span>系统公告</span>
                </div>
                <div class="notice-title">系统升级通知</div>
                <div class="notice-desc">平台将于本周六晚上10点至周日凌晨2点进行系统维护升级，期间可能无法正常访问，请您提前安排好学习计划。</div>
                <div class="notice-time">2025/05/15 18:27:00</div>
            </div>
        </div>

        <!-- 快捷功能 -->
        <h3 class="section-title">快捷功能</h3>
        <div class="functions-container">
            <div class="function-card">
                <div class="function-icon exam-icon">
                    <i class="fas fa-file-alt"></i>
                </div>
                <h4>智能考试</h4>
                <p>AI智能出题，自动批阅，精准评估学习效果</p>
            </div>
            <div class="function-card">
                <div class="function-icon exercise-icon">
                    <i class="fas fa-pen-fancy"></i>
                </div>
                <h4>智能刷题</h4>
                <p>AI推荐题目，个性化练习，智能分析弱项</p>
            </div>
            <div class="function-card">
                <div class="function-icon ranking-icon">
                    <i class="fas fa-chart-line"></i>
                </div>
                <h4>学习排行</h4>
                <p>查看学习排名，与同学竞争，激发学习动力</p>
            </div>
            <div class="function-card">
                <div class="function-icon analysis-icon">
                    <i class="fas fa-brain"></i>
                </div>
                <h4>AI分析</h4>
                <p>智能学习报告，能力雷达图，个性化学习建议</p>
            </div>
        </div>

        <!-- 热门题目 -->
        <div class="hot-questions">
            <div class="section-header">
                <h3 class="section-title">热门题目</h3>
                <a href="#" class="view-more">
                    <span>查看更多</span>
                    <i class="fas fa-arrow-right"></i>
                </a>
            </div>
            <div class="questions-container">
                <div class="question-card">
                    <div class="question-tags">
                        <span class="tag tag-type">选择题</span>
                        <span class="tag tag-difficulty">中等</span>
                    </div>
                    <h4>Spring框架中，关于Bean生命周期的说法正确的是？</h4>
                    <div class="question-stats">
                        <span><i class="fas fa-eye"></i> 103查看</span>
                        <span><i class="fas fa-check-circle"></i> 42%正确率</span>
                    </div>
                </div>
                <div class="question-card">
                    <div class="question-tags">
                        <span class="tag tag-type">选择题</span>
                        <span class="tag tag-difficulty">中等</span>
                    </div>
                    <h4>关于Spring框架的AOP实现，以下说法正确的是？</h4>
                    <div class="question-stats">
                        <span><i class="fas fa-eye"></i> 87查看</span>
                        <span><i class="fas fa-check-circle"></i> 35%正确率</span>
                    </div>
                </div>
                <div class="question-card">
                    <div class="question-tags">
                        <span class="tag tag-type">选择题</span>
                        <span class="tag tag-difficulty">中等</span>
                    </div>
                    <h4>以下哪个是Spring框架的核心特性？</h4>
                    <div class="question-stats">
                        <span><i class="fas fa-eye"></i> 156查看</span>
                        <span><i class="fas fa-check-circle"></i> 68%正确率</span>
                    </div>
                </div>
                <div class="question-card">
                    <div class="question-tags">
                        <span class="tag tag-type">判断题</span>
                        <span class="tag tag-difficulty">中等</span>
                    </div>
                    <h4>Redis主从模式下，以下关于从节点的描述哪些是正确的？</h4>
                    <div class="question-stats">
                        <span><i class="fas fa-eye"></i> 92查看</span>
                        <span><i class="fas fa-check-circle"></i> 51%正确率</span>
                    </div>
                </div>
                <div class="question-card">
                    <div class="question-tags">
                        <span class="tag tag-type">判断题</span>
                        <span class="tag tag-difficulty">中等</span>
                    </div>
                    <h4>Redis的主从复制支持自动故障转移吗？</h4>
                    <div class="question-stats">
                        <span><i class="fas fa-eye"></i> 78查看</span>
                        <span><i class="fas fa-check-circle"></i> 29%正确率</span>
                    </div>
                </div>
                <div class="question-card">
                    <div class="question-tags">
                        <span class="tag tag-type">选择题</span>
                        <span class="tag tag-difficulty">中等</span>
                    </div>
                    <h4>在Redis主从模式中，主节点从从节点之间复制的数据是哪种类型？</h4>
                    <div class="question-stats">
                        <span><i class="fas fa-eye"></i> 114查看</span>
                        <span><i class="fas fa-check-circle"></i> 47%正确率</span>
                    </div>
                </div>
            </div>
        </div>

        <!-- 统计卡片 -->
        <div class="stats-container">
            <div class="stat-card">
                <i class="fas fa-question-circle stat-icon"></i>
                <div class="stat-number">257</div>
                <div class="stat-desc">题目总数</div>
            </div>
            <div class="stat-card">
                <i class="fas fa-users stat-icon"></i>
                <div class="stat-number">1,842</div>
                <div class="stat-desc">用户总数</div>
            </div>
            <div class="stat-card">
                <i class="fas fa-file-alt stat-icon"></i>
                <div class="stat-number">142</div>
                <div class="stat-desc">考试总次</div>
            </div>
            <div class="stat-card">
                <i class="fas fa-calendar-day stat-icon"></i>
                <div class="stat-number">12</div>
                <div class="stat-desc">今日考试</div>
            </div>
        </div>
    </div>

    <script>
        // 简单的交互效果
        document.querySelectorAll('.btn').forEach(button => {
            button.addEventListener('click', function () {
                this.style.transform = 'scale(0.98)';
                setTimeout(() => {
                    this.style.transform = '';
                }, 150);
            });
        });

        // 模拟公告更新
        function updateNotice() {
            const notices = [
                {
                    title: "新功能上线",
                    content: "AI智能刷题功能已正式上线，现在可以根据你的学习情况智能推荐题目了！",
                    time: "2025/05/16 09:30:00"
                },
                {
                    title: "系统升级通知",
                    content: "平台将于本周六晚上10点至周日凌晨2点进行系统维护升级。",
                    time: "2025/05/15 18:27:00"
                },
                {
                    title: "考试安排",
                    content: "《计算机科学导论》期中考试将于下周一上午10点开始，请同学们提前准备。",
                    time: "2025/05/14 14:45:00"
                }
            ];

            let currentIndex = 0;

            setInterval(() => {
                const notice = notices[currentIndex];
                document.querySelector('.notice-title').textContent = notice.title;
                document.querySelector('.notice-desc').textContent = notice.content;
                document.querySelector('.notice-time').textContent = notice.time;

                currentIndex = (currentIndex + 1) % notices.length;
            }, 5000);
        }

        // 页面加载完成后启动公告更新
        window.addEventListener('load', updateNotice);
    </script>
</body>

</html>